package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.data.md5.BaseUtil;
import com.hongyuan.sellfitness.utils.TimeUtil;

import java.util.List;

public class StoreLessonDetailBean {

    /**
     * cp_id : 9
     * cp_name : 力与美
     * m_id : 34
     * ft_id : 2
     * cp_duration : 60min
     * cp_info : 胸，背，腿，肩，手臂进行循环训练，从单功能器械训练到自由力量训练，使身材得到改变
     * cp_people : 需要增加肌肉力量，改变型体，男女皆可
     * cp_suggest : 科学的方法可以让我们拥有好的身材，每个动作的细节是很关键的，配合着营养的饮食和科学的方法，你的身材一定能得到改变
     * cp_note :
     * cp_price : 360.00
     * cp_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190814/b1975ff96bbb823dd3814ad41f996a08061a51d0_2208x2208.jpg
     * cp_num : 1
     * os_id : 22
     * is_ty : 2
     * is_del : 2
     * cp_state : 2
     * cp_anli_imgs : null
     * verify_desc :
     * verify_admin_id : 0
     * verify_admin_name :
     * verify_time : 0
     * is_index : 0
     * os_n : 1
     * ft_name : 增肌
     * os_name : 湖州首玺健身湖东店
     * mi_realname : 冯哲逸
     * m_mobile : 15868283875
     * coach_nickname : Michael
     * coach_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190818/53fd9ad3b2ee762371ad61628d34df5caaff7290_200x200.jpg
     * have_num : 0
     * bnum : 10
     * is_collection : 0
     * last_kong_date : 2020-10-15 18:00
     * price_list : []
     */

    private int cp_id;
    private String cp_name;
    private int m_id;
    private int ft_id;
    private String cp_duration;
    private String cp_info;
    private String cp_people;
    private String cp_suggest;
    private String cp_note;
    private String cp_price;
    private String cp_img;
    private int cp_num;
    private int os_id;
    private int is_ty;
    private int is_del;
    private int cp_state;
    private String cp_anli_imgs;
    private String verify_desc;
    private int verify_admin_id;
    private String verify_admin_name;
    private int verify_time;
    private int is_index;
    private int os_n;
    private String ft_name;
    private String os_name;
    private String mi_realname;
    private String m_mobile;
    private String coach_nickname;
    private String coach_head;
    private int have_num;
    private int bnum;
    private int is_collection;
    private String last_kong_date;
    private List<PriceListBean> price_list;

    public int getCp_id() {
        return cp_id;
    }

    public void setCp_id(int cp_id) {
        this.cp_id = cp_id;
    }

    public String getCp_name() {
        return cp_name;
    }

    public void setCp_name(String cp_name) {
        this.cp_name = cp_name;
    }

    public int getM_id() {
        return m_id;
    }

    public void setM_id(int m_id) {
        this.m_id = m_id;
    }

    public int getFt_id() {
        return ft_id;
    }

    public void setFt_id(int ft_id) {
        this.ft_id = ft_id;
    }

    public String getCp_duration() {
        return cp_duration;
    }

    public void setCp_duration(String cp_duration) {
        this.cp_duration = cp_duration;
    }

    public String getCp_info() {
        return cp_info;
    }

    public void setCp_info(String cp_info) {
        this.cp_info = cp_info;
    }

    public String getCp_people() {
        return cp_people;
    }

    public void setCp_people(String cp_people) {
        this.cp_people = cp_people;
    }

    public String getCp_suggest() {
        return cp_suggest;
    }

    public void setCp_suggest(String cp_suggest) {
        this.cp_suggest = cp_suggest;
    }

    public String getCp_note() {
        return cp_note;
    }

    public void setCp_note(String cp_note) {
        this.cp_note = cp_note;
    }

    public String getCp_price() {
        return BaseUtil.getNoZoon(cp_price);
    }

    public void setCp_price(String cp_price) {
        this.cp_price = cp_price;
    }

    public String getCp_img() {
        return cp_img;
    }

    public void setCp_img(String cp_img) {
        this.cp_img = cp_img;
    }

    public int getCp_num() {
        return cp_num;
    }

    public String getStrCp_num() {
        return cp_num+"节起售";
    }

    public void setCp_num(int cp_num) {
        this.cp_num = cp_num;
    }

    public int getOs_id() {
        return os_id;
    }

    public void setOs_id(int os_id) {
        this.os_id = os_id;
    }

    public int getIs_ty() {
        return is_ty;
    }

    public void setIs_ty(int is_ty) {
        this.is_ty = is_ty;
    }

    public int getIs_del() {
        return is_del;
    }

    public void setIs_del(int is_del) {
        this.is_del = is_del;
    }

    public int getCp_state() {
        return cp_state;
    }

    public void setCp_state(int cp_state) {
        this.cp_state = cp_state;
    }

    public String getCp_anli_imgs() {
        return cp_anli_imgs;
    }

    public void setCp_anli_imgs(String cp_anli_imgs) {
        this.cp_anli_imgs = cp_anli_imgs;
    }

    public String getVerify_desc() {
        return verify_desc;
    }

    public void setVerify_desc(String verify_desc) {
        this.verify_desc = verify_desc;
    }

    public int getVerify_admin_id() {
        return verify_admin_id;
    }

    public void setVerify_admin_id(int verify_admin_id) {
        this.verify_admin_id = verify_admin_id;
    }

    public String getVerify_admin_name() {
        return verify_admin_name;
    }

    public void setVerify_admin_name(String verify_admin_name) {
        this.verify_admin_name = verify_admin_name;
    }

    public int getVerify_time() {
        return verify_time;
    }

    public void setVerify_time(int verify_time) {
        this.verify_time = verify_time;
    }

    public int getIs_index() {
        return is_index;
    }

    public void setIs_index(int is_index) {
        this.is_index = is_index;
    }

    public int getOs_n() {
        return os_n;
    }

    public String getStrOs_n() {
        return os_n == 1 ? "一对一" : "一对多";
    }

    public void setOs_n(int os_n) {
        this.os_n = os_n;
    }

    public String getFt_name() {
        return ft_name;
    }

    public void setFt_name(String ft_name) {
        this.ft_name = ft_name;
    }

    public String getOs_name() {
        return os_name;
    }

    public void setOs_name(String os_name) {
        this.os_name = os_name;
    }

    public String getMi_realname() {
        return mi_realname;
    }

    public void setMi_realname(String mi_realname) {
        this.mi_realname = mi_realname;
    }

    public String getM_mobile() {
        return m_mobile;
    }

    public void setM_mobile(String m_mobile) {
        this.m_mobile = m_mobile;
    }

    public String getCoach_nickname() {
        return coach_nickname;
    }

    public void setCoach_nickname(String coach_nickname) {
        this.coach_nickname = coach_nickname;
    }

    public String getCoach_head() {
        return coach_head;
    }

    public void setCoach_head(String coach_head) {
        this.coach_head = coach_head;
    }

    public int getHave_num() {
        return have_num;
    }

    public void setHave_num(int have_num) {
        this.have_num = have_num;
    }

    public int getBnum() {
        return bnum;
    }

    public String getStrBnum() {
        return "参课"+bnum+"人";
    }

    public void setBnum(int bnum) {
        this.bnum = bnum;
    }

    public int getIs_collection() {
        return is_collection;
    }

    public void setIs_collection(int is_collection) {
        this.is_collection = is_collection;
    }

    public String getLast_kong_date() {
        return last_kong_date;
    }

    public void setLast_kong_date(String last_kong_date) {
        this.last_kong_date = last_kong_date;
    }

    public List<PriceListBean> getPrice_list() {
        return price_list;
    }

    public void setPrice_list(List<PriceListBean> price_list) {
        this.price_list = price_list;
    }

    public static class PriceListBean{
        /**
         * cpp_id : 12
         * min_num : 1
         * max_num : 9
         * cp_id : 14
         * price : 600.00
         */

        private int cpp_id;
        private int min_num;
        private int max_num;
        private int cp_id;
        private String price;
        private boolean select;

        public boolean isSelect() {
            return select;
        }

        public void setSelect(boolean select) {
            this.select = select;
        }

        public PriceListBean(int cpp_id, int min_num, int max_num, int cp_id, String price) {
            this.cpp_id = cpp_id;
            this.min_num = min_num;
            this.max_num = max_num;
            this.cp_id = cp_id;
            this.price = price;
        }

        public int getCpp_id() {
            return cpp_id;
        }

        public void setCpp_id(int cpp_id) {
            this.cpp_id = cpp_id;
        }

        public int getMin_num() {
            return min_num;
        }

        public String getStrMin_num() {
            return min_num+"节课：¥";
        }

        public void setMin_num(int min_num) {
            this.min_num = min_num;
        }

        public int getMax_num() {
            return max_num;
        }

        public void setMax_num(int max_num) {
            this.max_num = max_num;
        }

        public int getCp_id() {
            return cp_id;
        }

        public void setCp_id(int cp_id) {
            this.cp_id = cp_id;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getPriceAndMin_num() {
            return min_num+"节起 ¥" + BaseUtil.getNoZoon(price)+"/节";
        }
    }

    public String getKongTime(){
        if(TimeUtil.isToday(last_kong_date,TimeUtil.dateFormat)){
            return "今日可约 "+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatHM);
        }else{
            return "最近 "+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatHM);
        }
    }
}
